from django import template

register = template.Library()


# @register.filter
@register.simple_tag
def null_to_empty(value):
    if value is None:
        return ''
    return value
